package com.youhome.clients.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Email;
import java.util.Date;

/**
 * Created by chen365 on 2019/02/28.
 */
@Data
@ApiModel
public class DTOClientBasicsInfo {
    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "邮箱")
    @Email(message = "邮箱不正确")
    private String email;

    @ApiModelProperty(value = "微信")
    private String weiXin;

    @ApiModelProperty(value = "QQ")
    private String qq;

    @ApiModelProperty(value = "生日")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthDate;

    @ApiModelProperty(value = "性别")
    private Integer sex;

}
